package com.region.http.client.resolver.result;

import com.region.common.utils.ReflectUtils;
import com.region.http.client.model.ResponseData;

import java.lang.reflect.Type;

/**
 * @author 26225
 * @date 2024/9/1 14:56
 * @description
 */
public class VoidResultResolver implements ResultResolver {
    @Override
    public boolean isResolver(Type type) {
        return void.class.isAssignableFrom(ReflectUtils.transform(type));
    }

    @Override
    public Object resolver(ResponseData responseData) throws Throwable {
        return null;
    }
}
